import 'dart:convert';

ClassSettingsResult classSettingsResultFromJson(String str) =>
    ClassSettingsResult.fromJson(json.decode(str));

String classSettingsResultToJson(ClassSettingsResult data) =>
    json.encode(data.toJson());

class ClassSettingsResult {
  ClassSettingsResult({
    this.status,
    this.message,
    this.result,
  });

  int? status;
  String? message;
  Result? result;

  factory ClassSettingsResult.fromJson(Map<String, dynamic> json) =>
      ClassSettingsResult(
        status: json["status"],
        message: json["message"],
        result: Result.fromJson(json["result"]),
      );

  Map<String, dynamic> toJson() => {
        "status": status,
        "message": message,
        "result": result != null ? result?.toJson() : null,
      };
}

class Result {
  Result({
    this.placementTest,
    this.evaluation,
    this.vocabulary,
    this.profileStudentFromJson,
    this.quizThreshold,
    this.interfaceChinese,
  });

  bool? placementTest;
  bool? evaluation;
  bool? vocabulary;
  bool? profileStudentFromJson;
  int? quizThreshold;
  bool? interfaceChinese;

  factory Result.fromJson(Map<String, dynamic> json) => Result(
      placementTest: json["placementTest"],
      evaluation: json["evaluation"],
      vocabulary: json["vocabulary"],
      quizThreshold: json['quizThreshold'],
      interfaceChinese: json['interfaceChinese']);

  Map<String, dynamic> toJson() => {
        "placementTest": placementTest,
        "evaluation": evaluation,
        "vocabulary": vocabulary,
        'quizThreshold': 'quizThreshold',
        'interfaceChinese': interfaceChinese,
      };
}
